package com.songyang.mqttandothers.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songyang.mqttandothers.bean.DeviceBean;

import java.util.List;


public interface DeviceService extends IService<DeviceBean> {
    Integer bind(Integer userId, Integer deviceId, String deviceName);

    boolean unBind(Integer userId, Integer deviceId);

    String getChannel(Integer userId, Integer deviceId);

    List<DeviceBean> getAllList(Integer userId);

    String[] getAllTopic();
}
